Intent intent = new Intent(
context, ForegroundService.class);
context.unbindService(connection);
context.stopService(intent);
}
}
Intent intent = new Intent(
context, ForegroundService.class);
if (isBind) {
context.unbindService(connection);
}
context.stopService(intent);